<?php

$hash = 'f60809bbe4d43a919403dc3de028f1ad';

?>
<?php for( $i = 1; $i <= $this->loops_runs['categories']; $i++ ) { $loop_categories = $this->loops_var['categories'][ $i ]; ?>
    <table width="100%" cellspacing="0">
        <tr>
            <th colspan="5"><?php echo ( isset( $loop_categories['category_name'] ) ) ? $loop_categories['category_name'] : ''; ?></th>
        </tr>
        <tr>
            <td class="ex_sh border_right border_left" style="width: 330px;" colspan="2">Forum</td><td class="ex_sh border_right center_text" style="width: 140px;"><?php echo ( isset( $this->vars['l_forum_posts'] ) ) ? $this->vars['l_forum_posts'] : ''; ?></td><td class="ex_sh border_right center_text" style="width: 140px;"><?php echo ( isset( $this->vars['l_forum_topics'] ) ) ? $this->vars['l_forum_topics'] : ''; ?></td><td class="ex_sh border_right"><?php echo ( isset( $this->vars['l_last_activity'] ) ) ? $this->vars['l_last_activity'] : ''; ?></td>
        </tr>
        <?php echo ( isset( $loop_categories['forums'] ) ) ? $loop_categories['forums'] : ''; ?>
        <tr>
            <th colspan="5" class="ex_sh" style="text-align: right;font-weight: normal;"></th>
        </tr>
    </table>
    <div class="small_spacer"></div>
<?php } ?>
    
    <div class="spacer"></div>
    
    <table width="100%" cellspacing="0">
        <tr>
            <th colspan="2"><?php echo ( isset( $this->vars['l_stats_and_info'] ) ) ? $this->vars['l_stats_and_info'] : ''; ?></th>
        </tr>
        <tr>
            <td class="ex_sh border_right border_left" colspan="2"><?php echo ( isset( $this->vars['users_online_in_last_minutes'] ) ) ? $this->vars['users_online_in_last_minutes'] : ''; ?></td>
        </tr>
        <tr class="padder">
            <td class="border_bottom center_text border_left border_right" style="width: 80px;"><img src="./templates/default/icons/users.png"></td>
            <td class="border_right border_bottom">
                <div class="forum_name small">
                    <?php echo ( isset( $this->vars['users_online_count'] ) ) ? $this->vars['users_online_count'] : ''; ?>
                    <hr />
                    Zalogowani: <?php for( $i = 1; $i <= $this->loops_runs['users_online']; $i++ ) { $loop_users_online = $this->loops_var['users_online'][ $i ]; ?><a href="<?php echo ( isset( $loop_users_online['a_user_link'] ) ) ? $loop_users_online['a_user_link'] : ''; ?>"><?php echo ( isset( $loop_users_online['username'] ) ) ? $loop_users_online['username'] : ''; ?></a> <?php } ?><?php if( !isset( $this->loops_runs['users_online'] ) ) { ?><?php echo ( isset( $this->vars['l_no_logged_users'] ) ) ? $this->vars['l_no_logged_users'] : ''; ?><?php } ?>
                </div>
            </td>
        </tr>
        
        <tr>
            <td class="ex_sh border_right border_left" colspan="2"><?php echo ( isset( $this->vars['l_stats'] ) ) ? $this->vars['l_stats'] : ''; ?></td>
        </tr>
        <tr class="padder">
            <td class="border_bottom center_text border_left border_right" style="width: 80px;"><img src="./templates/default/icons/stats.png"></td>
            <td class="border_right border_bottom">
                <div class="forum_name small">
                    <?php echo ( isset( $this->vars['users_stats'] ) ) ? $this->vars['users_stats'] : ''; ?><br />
                    <?php echo ( isset( $this->vars['posts_stats'] ) ) ? $this->vars['posts_stats'] : ''; ?><br />
                    <?php echo ( isset( $this->vars['most_users'] ) ) ? $this->vars['most_users'] : ''; ?>
                </div>
            </td>
        </tr>
    </table>